/**
 *
 */
package com.wedroid.r2d2.support.response;

import com.alibaba.fastjson.JSONObject;

/**
 * @author lute
 */
public class UploadMediaResponse extends AbstractBaseResponse {

    private String mediaId;

    private long startPos;

    private int thumbWidth;

    private int thumbHeight;

    /* (non-Javadoc)
     * @see com.wedroid.r2d2.support.response.AbstractBaseResponse#parseInternal(com.alibaba.fastjson.JSONObject)
     */
    @Override
    protected void parseInternal(JSONObject object) {
        mediaId = object.getObject("MediaId", String.class);
        startPos = object.getLongValue("StartPos");
        thumbWidth = object.getIntValue("CDNThumbImgWidth");
        thumbHeight = object.getIntValue("CNDThumbImgHeight");
    }

    /**
     * @return the mediaId
     */
    public String getMediaId() {
        return mediaId;
    }

    /**
     * @return the startPos
     */
    public long getStartPos() {
        return startPos;
    }

    /**
     * @return the thumbWidth
     */
    public int getThumbWidth() {
        return thumbWidth;
    }

    /**
     * @return the thumbHeight
     */
    public int getThumbHeight() {
        return thumbHeight;
    }

}
